package ihm;

import java.awt.CardLayout;
import java.awt.Dimension;

import javax.swing.JFrame;

public class ihmFenetre extends JFrame {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Dimension tailleEcran = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
	static CardLayout card = new CardLayout();
	
	// Constructor
	public ihmFenetre() {
		
		this.getContentPane().setLayout(card);
 
		this.setSize(tailleEcran);
		this.setUndecorated(true);
		
		this.getContentPane().add(new panelAccueil(), "accueil");
		this.getContentPane().add(new panelIdentification(this), "identification");
		this.getContentPane().add(new panelCreationCompte(this), "creationCompte");
	
		card.show(this.getContentPane(), "creationCompte");
		this.setVisible(true);
	}
	
	public static void main(String[] args) {
		ihmFenetre test = new ihmFenetre();
	}
	
	public CardLayout getCard(){
		return card;
	}
}
